import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);
/**
 * noTrans true or false 设置当前路由是否需要动画切换效果
 */
export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/login'
        },
        /*{
            path: "/enterpriseJoin",
            name: "EnterpriseJoin",
            component: () => import("@/views/enterpriseJoin/index.vue")
        },*/
        {
            path: '/login',
            name: 'login-login',
            component: () => import('@/views/login/index.vue')
        },
        {
            path: '/resetPwd',
            name: 'resetPwd',
            component: () => import('@/views/login/reset.vue')
        },
        {
            path: '/selectUnion',
            name: 'select-union',
            component: () => import('@/views/login/selectUnion.vue')
        },
        {
            path: '/resetUnion',
            name: 'reset-union',
            component: () => import('@/views/login/resetUnion.vue')
        },
        {
            path: '/changePhone/index',
            name: 'ChangePhone',
            component: () => import('@/views/changePhone/pages/index.vue')
        }, {
            path: '/changePhone/verify',
            name: 'ChangePhoneVerify',
            component: () => import('@/views/changePhone/pages/verify.vue')
        }, {
            path: '/changePhone/submit',
            name: 'ChangePhoneSubmit',
            component: () => import('@/views/changePhone/pages/submit.vue')
        },
    ]
});
